TARGET = libMulticast.so

SRCS = $(wildcard *.c) 
OBJS = $(SRCS:.c=.o)

CFLAGS += -fPIC -g
LDFLAGS += -shared

INCLUDE += -I../

$(TARGET): $(OBJS)
	$(CC) -o $@ $^ $(LDFLAGS)

%.o: %.c
	$(CC) $(INCLUDE) $(CFLAGS) -c $^


.PHONY: clean

clean:
	-rm -f ./*.o
	-rm -f $(TARGET)